import request from "@/utils/request";

// 获得投诉建议分页
export function getSuggestPage(query) {
    return request({
      url: "/store/suggest/page",
      method: "get",
      params: query,
    });
  }

// 获取投诉类型
export function getSuggestType(query) {
  return request({
    url: "/store/suggest/suggestType",
    method: "get",
    params: query,
  });
}

// 获得投诉建议
export function getSuggestInfo(query) {
  return request({
    url: "/store/suggest/info",
    method: "get",
    params: query,
  });
}

// 处理反馈
export function HandleFeedback(data) {
  return request({
    url: "/store/suggest/handle",
    method: "post",
    data: data,
  });
}